package com.ck.express.enums

enum class RecordTypeEnum {
    DELIVERY,
    LATTICE;

    companion object {
        fun from(value: String?): RecordTypeEnum? =
            value?.takeIf { it.isNotBlank() }?.let {
                runCatching { valueOf(it) }.getOrNull()
            }
    }
}